counter_file=/usr/local/etc/.counter
stat_file=/usr/local/etc/.state
if [ ! -f $stat_file ]; then
if [ -f $counter_file ]; then
echo "COUNT_OK" > $stat_file
else
echo "CHECKING" > $stat_file
/opt/bin/svn info http://sdk4-custom.googlecode.com/svn/trunk/ | grep 'Last Changed Rev' | sed 's/Last Changed Rev: *//' > /usr/local/etc/.new_revision
revision=`cat /usr/local/etc/.revision`
new_revision=`cat /usr/local/etc/.new_revision`
log=/usr/local/etc/log.xml
if [ -f $log ]; then
rm -f $log
fi
/opt/bin/svn log --xml -r $revision:$new_revision http://sdk4-custom.googlecode.com/svn/trunk/ >> $log
echo "CHECK_OK" > $stat_file
fi
fi
